package ecustom.clients.k3client.entities;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonAutoDetect;

/**
 */
@JsonAutoDetect(
		fieldVisibility = JsonAutoDetect.Visibility.ANY,
		getterVisibility = JsonAutoDetect.Visibility.NONE)
public class ERPResponseResult {
	
	private Result Result;
	
	public Result getResult() {
		return Result;
	}

	public void setResult(Result result) {
		Result = result;
	}

	@JsonAutoDetect(
		fieldVisibility = JsonAutoDetect.Visibility.ANY,
		getterVisibility = JsonAutoDetect.Visibility.NONE)
	public static class Result {
		private Integer Id;
		private String Number;
		private PODraftResultResponseStatus ResponseStatus;
		
		public Integer getId() {
			return Id;
		}
		public void setId(Integer id) {
			Id = id;
		}
		public String getNumber() {
			return Number;
		}
		public void setNumber(String number) {
			Number = number;
		}
		public PODraftResultResponseStatus getResponseStatus() {
			return ResponseStatus;
		}
		public void setResponseStatus(PODraftResultResponseStatus responseStatus) {
			ResponseStatus = responseStatus;
		}
	}
	
	@JsonAutoDetect(
			fieldVisibility = JsonAutoDetect.Visibility.ANY,
			getterVisibility = JsonAutoDetect.Visibility.NONE)
	public static class PODraftResultResponseStatus {
		private List<PODraftResultSuccessEntitys> SuccessEntitys;
		private Boolean IsSuccess;
		private Integer MsgCode;
		private List<Errors> Errors;

		public Boolean getIsSuccess() {
			return IsSuccess;
		}

		public void setIsSuccess(Boolean isSuccess) {
			IsSuccess = isSuccess;
		}

		public List<PODraftResultSuccessEntitys> getSuccessEntitys() {
			if (SuccessEntitys == null) SuccessEntitys = new ArrayList<ERPResponseResult.PODraftResultSuccessEntitys>();
			return SuccessEntitys;
		}

		public void setSuccessEntitys(List<PODraftResultSuccessEntitys> successEntitys) {
			SuccessEntitys = successEntitys;
		}

		public Integer getMsgCode() {
			return MsgCode;
		}

		public void setMsgCode(Integer msgCode) {
			MsgCode = msgCode;
		}
		public List<Errors> getErrors() {
			if (Errors == null) Errors = new ArrayList<Errors>();
			return Errors;
		}
		public void setErrors(List<Errors> errors) {
			Errors = errors;
		}
	}
	
	@JsonAutoDetect(
			fieldVisibility = JsonAutoDetect.Visibility.ANY,
			getterVisibility = JsonAutoDetect.Visibility.NONE)
	public static class Errors{
		private String FieldName;
		private String Message;
		public String getFieldName() {
			return FieldName;
		}
		public void setFieldName(String fieldName) {
			FieldName = fieldName;
		}
		public String getMessage() {
			return Message;
		}
		public void setMessage(String message) {
			Message = message;
		}
		
		
	}
	
	@JsonAutoDetect(
			fieldVisibility = JsonAutoDetect.Visibility.ANY,
			getterVisibility = JsonAutoDetect.Visibility.NONE)
	public static class PODraftResultSuccessEntitys {
		private Integer Id;
		private String Number;
		private String DIndex;
		
		public Integer getId() {
			return Id;
		}
		public void setId(Integer id) {
			Id = id;
		}
		public String getNumber() {
			return Number;
		}
		public void setNumber(String number) {
			Number = number;
		}
		public String getDIndex() {
			return DIndex;
		}
		public void setDIndex(String dIndex) {
			DIndex = dIndex;
		}
	}
	
}
